import { AppConfig } from "../config/app.config";
import { Env } from "./env";
import { App_Env_Enum, Argv_Enum } from "../enum/app.enum";

/**
 * 获取端口
 *
 */
export function getDevPort(): number {
    let port = Number( Env.getEnv(App_Env_Enum.VITE_PORT)) || AppConfig.DEV_PORT
    if(port) return port
    else throw new Error('请配置dev系统端口：config/app.config')
}


